package com.cjw.service.systemManage;

import com.cjw.pojo.dto.database.PageDTO;
import com.cjw.pojo.dto.systemManage.ExamineDTO;
import com.cjw.pojo.dto.systemManage.PassDTO;
import com.cjw.pojo.query.systemManage.ExamineQuery;

import java.util.List;

/**
 * @author : cjw
 * @date: : 2022/2/27 9:57
 * @description : ExamineService
 */
public interface ExamineService {
    /**
     * 添加审核记录-人工
     * @param type
     * @param contentId
     * @param content
     * @return
     */
    Boolean addExamineByPerson(Integer type, Long contentId, String content);

    /**
     * 添加审核记录-自动
     * @param type
     * @param contentId
     * @param content
     */
    void addExamineByAuto(Integer type, Long contentId, String content);

    /**
     * 分页查询
     * @param examineQuery
     * @return
     */
    PageDTO<List<ExamineDTO>> findListExamine(ExamineQuery examineQuery);

    /**
     * 通过审核
     * @param passDTO
     * @return
     */
    Boolean pass(PassDTO passDTO);

    /**
     * 不通过审核
     * @param passDTO
     * @return
     */
    Boolean unpass(PassDTO passDTO);
}
